

<div class="container">

	<div class="form-signin form-upload">
		<?php echo form_open_multipart('site/do_update/' . $id);?>

			

			<div class="alert alert-info alert-upload" role="info" style="text-align: center; ">
					<?=  $path; ?>								  
			</div>
			
			<div class="fileUpload btn btn-primary">
			    <span>Odaberite dokument</span>
			    <input id="uploadBtn" name="userfile" type="file" class="upload" />
			</div>

			<div class="select-menu"> 
				<div>
					<?php
			
						$options = array();

						foreach ($doc_types_query as $dq) {
							$options[$dq->short_name] = $dq->full_name;
						}
						
						
						$attr = 'class="bootstrap-select btn-group dropdown-menu"';

						echo form_dropdown('doc_type', $options, $doc_type, $attr);

					?>
				</div>

				<div>
					<?php
			
						$options = array();
						
						foreach ($partners_query as $pq) {
							$options[$pq->partner_short_name] = $pq->partner_full_name;
						}
						
						$attr = 'class="bootstrap-select btn-group dropdown-menu"';
						echo form_dropdown('partner', $options, $partner,$attr);

					?>
				</div>
			</div>

			
			<div class='input-group date' id='datetimepicker1'>
				
				<input type='date' name='created_on' class="form-control" required value="<?= $created_on; ?>"/>
				<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span>
				</span>
			</div>

			 
			<div class="comment">
			<textarea name="comment" required rows="4" class="form-control" style="resize: none"><?=  $comment;?></textarea>
			</div>

			<div class="button-upload">
				<button class="btn btn-lg btn-success btn-block btn-submit" id="submit-file" type="submit">Unesite izmjene</button>
			</div>

		</form>
	</div>


</div>



<script type="text/javascript">
	$(document).ready(function() {
		$("html").click(function() {
			$(".alert-vis").hide();
		});

		//$(".alert-upload").hide();

		$("#uploadBtn").change(function() {

			if($("#uploadBtn").val()!=="")
			{
			$(".alert-upload").show();
			$(".alert-upload").text($("#uploadBtn").val().split('\\').pop());
		}
		});	



	});
		
</script>




</body>
</html>